package com.ruoyi.wisdom.event;

import com.ruoyi.wisdom.constants.IotConstants;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

@Component
public class IotEvent {

    @Autowired
    @Qualifier("redisTemplate")
    public RedisTemplate redisTemplate;

    @Autowired
    @Qualifier("redisSecondTemplate")
    public RedisTemplate redisSecondTemplate;

    @Autowired
    public IotConstants iotConstants;

    private static ModelMapper modelMapper = new ModelMapper();

    /**
     * 返回实体转换对象
     * @return
     */
    public ModelMapper getModelMapper(){
        return modelMapper;
    }
}
